babl: fix minor leak reported in bug #790924
authorØyvind Kolås <pippin@gimp.org>
Wed, 7 Feb 2018 18:53:48 +0000 (19:53 +0100)
committerØyvind Kolås <pippin@gimp.org>
Wed, 7 Feb 2018 18:53:48 +0000 (19:53 +0100)
babl/babl-format.c

index 1db5f023797fcf74571bb3b65e76b11ef762a649..bc5ef6b040c6a89ccacc93a6c8d9fab44d581434 100644 (file)
@@ -737,6 +737,8 @@ babl_format_with_space (const char *name, const Babl *space)
     sprintf (new_name, "%s-%s", name, babl_get_name ((Babl*)space));
 
     ret = babl_db_exist_by_name (db, new_name);
+
+    babl_free (new_name);
     if (ret)
       return ret;